
<h1><span class="yiyi-st" id="yiyi-12">numpy.triu_indices_from</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.triu_indices_from.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.triu_indices_from.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="function">
<dt id="numpy.triu_indices_from"><span class="yiyi-st" id="yiyi-13"> <code class="descclassname">numpy.</code><code class="descname">triu_indices_from</code><span class="sig-paren">(</span><em>arr</em>, <em>k=0</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/lib/twodim_base.py#L978-L1007"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-14">返回arr的上三角形的索引。</span></p>
<p><span class="yiyi-st" id="yiyi-15">有关详细信息，请参阅<a class="reference internal" href="numpy.triu_indices.html#numpy.triu_indices" title="numpy.triu_indices"><code class="xref py py-obj docutils literal"><span class="pre">triu_indices</span></code></a>。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-16">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-17"><strong>arr</strong>：ndarray，shape（N，N）</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-18">指数将对方数组有效。</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-19"><strong>k</strong>：int，可选</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-20">对角线偏移（详见<a class="reference internal" href="numpy.triu.html#numpy.triu" title="numpy.triu"><code class="xref py py-obj docutils literal"><span class="pre">triu</span></code></a>）。</span></p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name"><span class="yiyi-st" id="yiyi-21">返回：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-22"><strong>triu_indices_from</strong>：元组，ndarray的形状（2），形状（N）</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-23"><em class="xref py py-obj">arr</em>的上三角形的索引。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-24">也可以看看</span></p>
<p class="last"><span class="yiyi-st" id="yiyi-25"><a class="reference internal" href="numpy.triu_indices.html#numpy.triu_indices" title="numpy.triu_indices"><code class="xref py py-obj docutils literal"><span class="pre">triu_indices</span></code></a>，<a class="reference internal" href="numpy.triu.html#numpy.triu" title="numpy.triu"><code class="xref py py-obj docutils literal"><span class="pre">triu</span></code></a></span></p>
</div>
<p class="rubric"><span class="yiyi-st" id="yiyi-26">笔记</span></p>
<div class="versionadded">
<p><span class="yiyi-st" id="yiyi-27"><span class="versionmodified">版本1.4.0中的新功能。</span></span></p>
</div>
</dd></dl>
